package org.jeecg.modules.demo.cashierdesk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 收银台
 */
@Data
//@TableName("cashier_desk")

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "cashier_desk对象", description = "收银台")
public class CashierDesk implements Serializable {
    private static final long serialVersionUID = 1L;


    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
    /**
     * 所属部门
     */
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
    private String storeId;


    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;

    /**
     * 规格
     */
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String specification;

    /**
     * 单价
     */
    @Excel(name = "单价", width = 15)
    @ApiModelProperty(value = "单价")
    private Double price;

    /**
     * 总价
     */
    @Excel(name = "总价", width = 15)
    @ApiModelProperty(value = "总价")
    private Double totalPrice;

    /**
     * 优惠金额
     */
    @Excel(name = "优惠金额", width = 15)
    @ApiModelProperty(value = "优惠金额")
    private Double discountAmount;

    /**
     * 是否赠送
     */
    @Excel(name = "是否赠送", width = 15)
    @ApiModelProperty(value = "是否赠送")
    private String whetherGice;

    /**
     * 商品名称/项目名称
     */
    @Excel(name = "商品名称/项目名称", width = 15)
    @ApiModelProperty(value = "商品名称/项目名称")
    private String name;

    /**
     * 个数
     */
    @Excel(name = "个数", width = 15)
    @ApiModelProperty(value = "个数")
    private Integer num;

    //1=商品 2=项目 3=核销项目
    @Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型")
    private int type;

    /**
     * 提成归属
     */
    @Excel(name = "提成归属", width = 15)
    @ApiModelProperty(value = "提成归属")
    private String percentageBelonging;
}
